import { genderDefine, RaceDefine } from "../../../../defines/race_define";
import dialogues from "./dialogues";
import { getIdentity } from "../../../../identitys";
import { BasicNpc } from "../../../npc-control/basic_npc";
import message from "./message";
import { randomArrProportion } from "../../../../../core/utils/utils";
import backdrop from "./backdrop";

export default class NpcNode extends BasicNpc {
  constructor(...params) {
    super(...params);
  }

  getName(){
    return '王守'
  }

  getPeopleAttr(){
    return {
      race: RaceDefine.human.key,
      gender: genderDefine.male,
      money: 1852,
      basicAttr: {
        diff: 0.5,
      },
      useAttr: {
        age: 49,
      },
      identitys: [
        getIdentity('丰华村村长')
      ]
    }
  }

  messageDefine() {
    return message;
  }

  dialogueDefine(){
    return dialogues;
  }

  getIsShop(){
    return false;
  }

  backdropDefine(){
    return backdrop;
  }
}
